
import yaml

#函数功能：读取某测试数据文件中某部分的用例数据们，并封装成List[Dict]
def read_cesiData(file_name, key):
    with open(file_name, "r") as f:
        data = yaml.load(f,Loader=yaml.FullLoader)[key]
        ret = list()
        for k in data.keys():
            v=data[k];
            v["key"]=k;
            ret.append(v);
        return ret